package controller.KeyListeners;

import java.awt.event.KeyAdapter;
import java.awt.event.KeyEvent;
import java.util.HashMap;

import javax.swing.KeyStroke;

import view.GameWindow;
import view.mainscreen.StatusBar;

public class ViewChangeKeyListener extends KeyboardListener{
	GameWindow gameWindow;
		public ViewChangeKeyListener(){
			//F1 - 112
			keyBindings.put(KeyStroke.getKeyStroke(112,0), new Action(){
				//TODO
				//F1
				public void perform() {
					gameWindow.switchToMainScreen();
				}
			});
			//F2 - 113
			keyBindings.put(KeyStroke.getKeyStroke(113,0), new Action(){
				//TODO
				//F2
				public void perform() {
					gameWindow.switchToUOV();
				}
			});
			//F3 - 114
			keyBindings.put(KeyStroke.getKeyStroke(114,0), new Action(){
				//TODO
				//F3
				public void perform() {
					gameWindow.switchToSOV();
				}
			});
			//F4 - 115
			keyBindings.put(KeyStroke.getKeyStroke(115,0), new Action(){
				//TODO
				//F4
				public void perform() {
					gameWindow.switchToTOV();
				}
			});
			keyBindings.put(KeyStroke.getKeyStroke(116,0), new Action(){
				//TODO
				//F5
				public void perform() {
					gameWindow.switchToControlScreen();
				}
			});
		}
		public void attachGameWindow(GameWindow _gameWindow){
			gameWindow = _gameWindow;
		}
}
